﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportData.aspx.cs" Inherits="Votations.NSurvey.WebAdmin.ExportData" MasterPageFile="~/Admin/Admin.Master"   %>
<%@ Register TagPrefix="uc1" TagName="SurveyListControl" Src="UserControls/SurveyListControl.ascx" %>
<asp:content id="Content1" contentplaceholderid="ContentLinkAction" runat="server">
 <span class="action-span">
 <a href="ResultsReporting.aspx?SurveyID=<%=SurveyId %>"><%=GetPageResource("GraphicResultsReportHyperlink") %></a>  |
 <a href="FieldReporting.aspx?SurveyID=<%=SurveyId %>"><%=GetPageResource("TextFieldsResultsReportHyperlink") %></a>  |
 <a href="ResultsCrossTabulation.aspx?SurveyID=<%=SurveyId %>"> <%=GetPageResource("CrossTabResultsReportHyperlink") %></a>|
<a href="ExportData.aspx?SurveyID=<%=SurveyId %>"><%=GetPageResource("ExportDataHyperlink") %></a>

</span>
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentTitle" runat="server">
</asp:content>
<asp:content id="Content3" contentplaceholderid="ContentMain" runat="server">
<LINK href="css/nsurveyadmin.css" type=text/css rel=stylesheet >
<table>
  <tr>
    <td class=contentCell vAlign=top><asp:label id=MessageLabel runat="server" Visible="False" ForeColor="Green"></asp:label>
      <table class=innerText>
        <tr>
          <td colSpan=2>
            <table>
              <tr>
                <td width="99%"><font class=titleFont 
                  ><asp:Literal id="SurveyExportTitle" runat="server" EnableViewState="False">Survey CSV export</asp:Literal></font> </td>
                <td align=right><uc1:surveylistcontrol id=SurveyList runat="server"></uc1:surveylistcontrol></td></tr></table><IMG src="images/linebreak.gif" > 
        </td></tr>
        <tr>
          <td>&nbsp;&nbsp; </td>
          <td> 
            <table class=innerText>
              <tr>
                <td width=140><STRONG><asp:Literal id="FieldDelimiterLabel" runat="server" EnableViewState="False">Field delimiter :</asp:Literal></STRONG> </td>
                <td><asp:TextBox id="FieldDelimiterTextBox" runat="server" Columns="1" MaxLength="1">,</asp:TextBox></td></tr>
              <tr>
                <td width=140><STRONG><asp:Literal id="TextDelimiterLabel" runat="server" EnableViewState="False">Text delimiter :</asp:Literal></STRONG> </td>
                <td><asp:TextBox id="TextDelimiterTextBox" runat="server" Columns="1" MaxLength="1">&quot;</asp:TextBox></td></tr>
              <tr>
                <td width=140><STRONG><asp:Literal id="ExportFromDateLabel" runat="server" EnableViewState="False">Export from :</asp:Literal></STRONG> </td>
                <td><asp:TextBox id="StartDateTextBox" runat="server" Columns="6"></asp:TextBox></td></tr>
              <tr>
                <td width=140><STRONG><asp:Literal id="ExportToDateLabel" runat="server" EnableViewState="False">To :</asp:Literal></STRONG> </td>
                <td><asp:TextBox id="EndDateTextBox" runat="server" Columns="6"></asp:TextBox></td></tr></table><br 
            ></td></tr></table>
<asp:button id=ExportDataButton runat="server" Text="Export CSV" onclick="ExportCSVButton_Click"></asp:button>
<asp:button id="VoterExportXMLButton" runat="server" Text="Export XML" onclick="VoterExportXMLButton_Click"></asp:button>


</td></tr>
</table>
</asp:content>